load("@fbcode//buck2/tests:buck_e2e.bzl", "buck2_e2e_test")

oncall("build_infra")

buck2_e2e_test(
    name = "test_bxl",
    srcs = ["test_bxl.py"],
    data = "//buck2/tests/targets:isolated_targets",
    env = {
        "OVR_CONFIG": "1",
        "PRELUDE": "$(location prelude//:prelude)",
    },
    skip_for_os = [
        "darwin",
    ],
    deps = [
        "//buck2/tests/e2e_util:utils",  # @autodeps2-fixme-manual
    ],
)

buck2_e2e_test(
    name = "test_bxl_query",
    srcs = ["test_bxl_query.py"],
    data = "//buck2/tests/targets:isolated_targets",
    env = {
        "OVR_CONFIG": "1",
        "PRELUDE": "$(location prelude//:prelude)",
    },
    deps = [
        "//buck2/tests/e2e_util:utils",  # @autodeps2-fixme-manual
    ],
)

buck2_e2e_test(
    name = "test_bxl_fs",
    srcs = ["test_bxl_fs.py"],
    data = "//buck2/tests/targets:isolated_targets",
    env = {
        "OVR_CONFIG": "1",
        "PRELUDE": "$(location prelude//:prelude)",
    },
    deps = [
        "//buck2/tests/e2e_util:utils",  # @autodeps2-fixme-manual
    ],
)

buck2_e2e_test(
    name = "test_bxl_node_operations",
    srcs = ["test_bxl_node_operations.py"],
    data = "//buck2/tests/targets:isolated_targets",
    env = {
        "OVR_CONFIG": "1",
        "PRELUDE": "$(location prelude//:prelude)",
    },
    deps = [
        "//buck2/tests/e2e_util:utils",  # @autodeps2-fixme-manual
    ],
)

buck2_e2e_test(
    name = "test_bxl_lazy_analysis",
    srcs = ["test_bxl_lazy_analysis.py"],
    data = "//buck2/tests/targets:isolated_targets",
    env = {
        "OVR_CONFIG": "1",
        "PRELUDE": "$(location prelude//:prelude)",
    },
    deps = [
        "//buck2/tests/e2e_util:utils",  # @autodeps2-fixme-manual
    ],
)

buck2_e2e_test(
    name = "test_bxl_lazy_configured_target_node",
    srcs = ["test_bxl_lazy_configured_target_node.py"],
    data = "//buck2/tests/targets:isolated_targets",
    env = {
        "OVR_CONFIG": "1",
        "PRELUDE": "$(location prelude//:prelude)",
    },
    deps = [
        "//buck2/tests/e2e_util:utilities",
    ],
)

buck2_e2e_test(
    name = "test_bxl_lazy_unconfigured_target_node",
    srcs = ["test_bxl_lazy_unconfigured_target_node.py"],
    data = "//buck2/tests/targets:isolated_targets",
    env = {
        "OVR_CONFIG": "1",
        "PRELUDE": "$(location prelude//:prelude)",
    },
    deps = [
        "//buck2/tests/e2e_util:utilities",
    ],
)

buck2_e2e_test(
    name = "test_bxl_targets",
    srcs = ["test_bxl_targets.py"],
    data = "//buck2/tests/targets:isolated_targets",
    env = {
        "OVR_CONFIG": "1",
        "PRELUDE": "$(location prelude//:prelude)",
    },
    deps = [
        "//buck2/tests/e2e_util:utils",  # @autodeps2-fixme-manual
    ],
)

buck2_e2e_test(
    name = "test_bxl_lazy_cquery",
    srcs = ["test_bxl_lazy_cquery.py"],
    data = "//buck2/tests/targets:isolated_targets",
    env = {
        "OVR_CONFIG": "1",
        "PRELUDE": "$(location prelude//:prelude)",
    },
    deps = [
        "//buck2/tests/e2e_util:utils",  # @autodeps2-fixme-manual
    ],
)
